/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package rg1hammerdemo;

/**
 *
 * @author apple
 */
public class Main {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        // TODO code application logic here
        Hammer hammer1=new Hammer("羊角锤");
        Hammer hammer2=new Hammer("平角锤");
        
        Nail nail1=new Nail(3);
        Nail nail2=new Nail(5);
        Nail nail3=new Nail(6);
        
        hammer1.hit(nail1);
        hammer1.hit(nail2);
        
        hammer2.hit(nail3);
        
        
    }
    
}
